package com.syh.jn.scm.domain.support.repository;

import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.jn.scm.domain.support.entity.History;
import com.syh.jn.scm.dto.support.HistoryVo;

import java.util.List;

/**
 * Created by soci.song on 2019/1/18.
 */
public interface HistoryRepository extends AggregateRepository<History, Long> {
  /**
   * 根据单据id删除
   * @param id
   */
  void deleteHistorysByOriginalId(Long id);

  /**
   * 根据服务商id删除历史记录
   * @param id
   */
  void deleteHistorysByBusinessEntityId(Long id);

}
